<template>
  <p>{{ num }}</p>
  <button @click="update">更新</button>
</template>

<script lang="ts">
export default {
  name: "App",
  data() {
    return {
      num: 1,
    };
  },
  methods: {
    update() {
      this.num++;
    },
  },
};
</script>

<style scoped></style>
